package com.paic.mhis.hcpms.audit.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;

import com.paic.pafa.biz.dao.BaseDAO;

@Component("problemDataDao")
public class ProblemDataDao extends BaseDAO {

	public String getSequence() {
		return this._getString("problemDataDao.getSequence", null);
	}

	public List<Map<String, String>> queryProblemData() {
		return (List<Map<String, String>>) this._queryForList(
				"problemDataDao.queryProblem", null);
	}

	public void insertProblemData(Map<String, String> tempMap) {
		this._insert("problemDataDao.insertProblemData", tempMap);

	}

	public void insertProblemTargetData(Map<String, String> tempMap) {
		this._insert("problemDataDao.insertProblemTargetData", tempMap);
	}

	public void updateProblemData() {
		this._update("problemDataDao.updateProblemData");

	}

	public int queryCaseCount(Map<String, String> paramsMap) {
		return this._getInt("problemDataDao.queryCaseCount", paramsMap);
	}

	public List<Map<String, String>> queryTargetData(String warnNo) {
		return (List<Map<String, String>>) this._queryForList(
				"problemDataDao.queryProblemData", warnNo);
	}

}
